<?php

namespace App\Http\Controllers\UserApi;

use App\Http\Requests\UserApi\VipController\Vip;
use App\Services\Api\VipServices;
use Illuminate\Http\Request;

class VipController extends BaseController
{
    public function lists(Vip $request)
    {
        $param = $request->input();
        $param['user_id'] = auth('api') -> user()->id;
        $data = VipServices::list($param);
        return self::success($data);
    }

    //使用记录
    public function record(Request $request)
    {
        $param = $request->input();
        return self::success(VipServices::record($param));
    }
}
